package com.ziki.bswicket.component;

import org.apache.wicket.model.IModel;

import com.ziki.bswicket.model.BsModel;
import com.ziki.framework.wicket.markup.html.form.FwPasswordTextField;

public class BsPasswordTextField extends FwPasswordTextField {
    private static final long serialVersionUID = 1L;

    public BsPasswordTextField(String id) {
        super(id);
        init();
    }

    public BsPasswordTextField(String id, IModel<String> model) {
        super(id, model);
        init();
    }

    public BsPasswordTextField(String id, String value) {
        super(id);
        init();
        setValue(value);
    }

    private void init() {
        setResetPassword(false);
    }

    public void setValue(String val) {
        setDefaultModel(new BsModel<String>(val));
    }

}
